package com.gym.code.generator.impl;

import com.gym.code.generator.model.mapping.ModuleGenerateModel;
import com.gym.code.generator.model.mapping.ProjectGenerateModel;

/**
 * 针对一个工程提供的信息，生成代码
 * @author xinchun.wang
 * @email: 532002108@qq.com
 * @createTime 2015-4-19 下午12:56:56
 */
public class ProjectGenerator {

	private static ProjectGenerator instance = new ProjectGenerator();

	private ProjectGenerator() {
	}

	public static ProjectGenerator getInstance() {
		return instance;
	}


	public void generate(ProjectGenerateModel bean) {
		for (ModuleGenerateModel module : bean.getList()) {
			ModuleGenerator.getInstance().generate(module);
		}
	}

}
